<!DOCTYPE html>
<html lang="ja">
<head>
	<meta charset="UTF-8">
	<title>{{$forms.USER_name}} 様のマイページ | デンタルダイヤモンド社</title>
	<meta name="description" content="デンタルダイヤモンド社 :: 月刊デンタルダイヤモンド、DH Styleをはじめ、様々な書籍の情報閲覧が可能です。またその場で購入ができるオンラインショッピングも充実しております。">
	<meta name="keywords" content="補綴,咬合,有床義歯,クラウンブリッジ,インプラント,保存修復,歯内療法,歯周治療,歯科矯正,口腔外科,口腔診断,歯科X線,全身管理,予防歯科,高齢者歯科,若手歯科医のための臨床の技,月刊,チェアーサイドのガイドブック,ポケットブック,医事,経営,社会保険,スタッフ教育,待合室・患者指導用絵本,診療説明用リーフレット,デンタル,ダイヤモンド,デンタルダイヤモンド,歯学書,歯科">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="format-detection" content="telephone=no">
	<link rel="apple-touch-icon" href="sp/assets/images/icons/ip_icon.png">
	
	<!-- stylesheets -->
	<link rel="stylesheet" href="sp/assets/css/main.css" media="screen">
	<link rel="stylesheet" href="sp/assets/css/print.css" media="print">
	
	<!-- javascript -->
	<script src="sp/assets/js/func.js" type="text/JavaScript"></script>
	<script src="sp/assets/js/openclose.js" type="text/Javascript"></script>
	<script src="sp/assets/js/search_txt.js" type="text/Javascript"></script>
	<script src="sp/assets/js/jquery-1.4.1.js" type="text/JavaScript"></script>
	<script src="/__utm.js" type="text/javascript"></script>
<script type="text/javascript">

function del(the,userid) {
	if(confirm('リストから削除する?')){
	   var ob = document.getElementById(the);
	   var fob = ob.parentNode;
	   fob.removeChild(ob);

       
       $.ajax({
           type: "POST",
           url: "{{'sp/topMypage/del'|U}}",
           data: "goods_id=" + the+"&login_id="+userid,
           success: function (msg) {
               if (msg == "success") {
                 
               }
               if (msg == "fail") {
                 
               }
           },
           error: function (XMLHttpRequest, textStatus, thrownError) {
           }
       });




	   
	}
}



function addcart(gid,gNum)
{       
    $.ajax({
    url:"sp_cart_ajaxgetcart.html",type:"POST",datatype:"text",
    success: function(msg)
    {
    temp=msg
    if(temp=="")
    {temp=gid+"-"+gNum;}
    else
    {
    temp=temp +"|"+gid+"-"+gNum;
    }
    $.ajax({url:"sp_cart_ajaxsetcart.html",type:"POST", data:"shopjpcart="+temp,
    success: function(msg2)
    {
    if(msg2=='cart ajax success')
    {
		//提交成功
    	location.href = "sp_cart_index.html"
    }
    }
    });
    }
    })
}	

</script>
</head>

<body>
	<div id="wrapper">
			{{$sp_head}}
		
		<ol id="pan">
			<li><a href="{{'sp/top/index'|U}}">ホーム</a></li>
			<li>メンバー登録</li>
		</ol>

		<section id="main">
			<div id="mypage">
				<h1>{{$forms.USER_name}} 様のマイページ</h1>
				
				<ul id="mypage_nav">
						    <li><a href="{{'sp/TopMypage/index1'|U}}" title="ほしいものリスト">ほしいものリスト</a></li>
							<li><a href="{{'sp/TopMypage/index2'|U}}" title="ご購入履歴">ご購入履歴</a></li>
							<li><a href="{{'sp/TopMypage/index3'|U}}" title="会員情報">会員情報</a></li>
				</ul>

				<h2>ほしいものリスト</h2>
				<div class="mypage_wishlist">
					<p>商品詳細ページの「ほしいものリストに追加」リンクをクリックすると、こちらに追加されます。</p>
						
					<ul>
												{{ foreach from=$goods_data key=k item=v name="member" }}
					           <li id="{{$v.id}}">
									<div class="wish_img"><a href="{{'sp/topItem/index'|U}}?id={{$v.id}}" title="{{$v.goods_name}}"><img src="{{$v.goods_image}}" /></a></div>
									<h3><a href="{{'sp/topItem/index'|U}}?id={{$v.id}}" title="{{$v.goods_name}}">{{$v.goods_name}}</a></h3>
									<h4>{{$v.insideappraise}}</h4>
									<p>
										定価：<em>{{$v.goods_rate|number_format}}</em>円（税込）<br>
										{{$v.goods_style}}<br>
										{{$v.goods_issuedate|date_format:"%Y"}}年{{$v.goods_issuedate|date_format:"%m"}}月発行
									</p>
									<dl>
										 {{if ($v.sellbegin and $v.sellbegin!="0000-00-00 00:00:00") or ($v.sellend and $v.sellend!="0000-00-00 00:00:00")}}
									        {{if $v.sellend > $smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}}
									      <dt><a href="javascript:void(0)"   onclick=addcart({{$v.id}},1) title="{{$v.goods_name}}">買い物カゴに入れる</a></dt>
									        {{else}}
									      <em>販売終了しました</em>
									        {{/if}}
									       {{else}}
									      <em>未発売</em>
									  {{/if}}
										| <a href="javascript:void(0)" onclick=del({{$v.id}},{{$forms.USER_id}}) title="リストから削除する">リストから削除する</a>
									</dl>
									<br clear="all">
								</li>
						    {{ /foreach }}
					</ul>
					<br clear="all">
				</div>
						
				<h2>{{$forms.USER_name}} 様におすすめ商品</h2>
				<div class="mypage_recommend">
{{if $goods_data}}							
<script language="JavaScript" type="text/javascript" charset="UTF-8">script = document.createElement("script");script.setAttribute("type", "text/javascript");script.setAttribute("language", "JavaScript");script.setAttribute("charset", "UTF-8");script.setAttribute("src", document.location.protocol + "//rc.kotoha.co.jp/js/kotohaco_rsWidget.js");tmp = document.createElement("div");tmp.appendChild(script);document.write(tmp.innerHTML);</script><script language="JavaScript" type="text/javascript" charset="UTF-8">var queryopt = new Array();
//レコメンド方式: 関連商品(タイプ2)
//itemidを指定します。指定されたitemidの商品に関連する商品を表示します。itemidはセミコロン区切りで最大10件まで設定可能です。 
//例：itemid = "X490352;X490863";
itemid = {{$itemid}};

k_callRs("dental-diamond","kotohaco_recoview","relation2",'itemid='+itemid,rsView,{ "layout": "table|cols=5|rows=1", "maxitems": "10", "pagenav": "1", "viewitems": ["image|type=image|link=1|size=0|alt=title", "title|type=text|link=1|maxlen=0", "data1|type=text|link=0|maxlen=0", "itemid|type=text|link=0|maxlen=0"], "link_target": "", "replaceprotocol_link": "1", "replaceprotocol_image": "1"},[[".kotohaco_rsview_itemwindow table td", "width:20%;height:100%;"], [".kotohaco_rsview_itemwindow ol", "margin:0; padding:0;list-style-type:none;width:100%;"], [".kotohaco_rsview_itemwindow table", "width:100%;"], [".kotohaco_rsview_item", "text-align:center; vertical-align: top; padding: 5px;"], [".kotohaco_rsview_item div", "margin-bottom:2px 0px;"], [".kotohaco_rsview_title", "border-bottom: medium #CCCCCC solid; border-left: thick #CCCCCC solid; padding: 5px; margin: 5px 0px;"], [".kotohaco_rsview_footer", "border-top: thin #CCCCCC solid; padding: 2px; font-size:10px; text-align:right; margin: 2px 0px;clear:both;"], [".kotohaco_rsview_pagenav .pagenav_back", "float:left; text-align:left"], [".kotohaco_rsview_pagenav .pagenav_next", "float:right; text-align:right"], [".kotohaco_rsview_pagenav", "text-align:center; clear:both;"]],queryopt);
</script>
{{else}}
<script language="JavaScript" type="text/javascript" charset="UTF-8">script = document.createElement("script");script.setAttribute("type", "text/javascript");script.setAttribute("language", "JavaScript");script.setAttribute("charset", "UTF-8");script.setAttribute("src", document.location.protocol + "//rc.kotoha.co.jp/js/kotohaco_rsWidget.js");tmp = document.createElement("div");tmp.appendChild(script);document.write(tmp.innerHTML);</script><script language="JavaScript" type="text/javascript" charset="UTF-8">var queryopt = new Array();
//レコメンド方式: 注目商品

k_callRs("dental-diamond","kotohaco_recoview","hot",'',rsView,{"layout": "table|cols=4|rows=1", "maxitems": "10", "pagenav": "1", "viewitems": ["image|type=image|link=1|size=0|alt=title", "title|type=text|link=1|maxlen=0", "data1|type=text|link=0|maxlen=0", "data2|type=text|link=0|maxlen=0"], "link_target": "", "replaceprotocol_link": "1", "replaceprotocol_image": "1"},[[".kotohaco_rsview_itemwindow table td", "width:25%;height:100%;"], [".kotohaco_rsview_itemwindow ol", "margin:0; padding:0;list-style-type:none;width:100%;"], [".kotohaco_rsview_itemwindow table", "width:100%;"], [".kotohaco_rsview_item", "text-align:center; vertical-align: top; padding: 5px;"], [".kotohaco_rsview_item div", "margin-bottom:2px 0px;"], [".kotohaco_rsview_title", "border-bottom: medium #CCCCCC solid; border-left: thick #CCCCCC solid; padding: 5px; margin: 5px 0px;"], [".kotohaco_rsview_footer", "border-top: thin #CCCCCC solid; padding: 2px; font-size:10px; text-align:right; margin: 2px 0px;clear:both;"], [".kotohaco_rsview_pagenav .pagenav_back", "float:left; text-align:left"], [".kotohaco_rsview_pagenav .pagenav_next", "float:right; text-align:right"], [".kotohaco_rsview_pagenav", "text-align:center; clear:both;"]],queryopt);
</script>
{{/if}}
					<br clear="all">
				</div>
						
				<div id="facebook_wide_2nd">
				</div>
			</div>
		</section>

		<section id="r_clm">
			<h3>3,000円以上で送料無料</h3>
			
			<h4><a href="javascript:collapse.slideit()">カテゴリ</a></h4>
               {{$categorying}}
			
			<h4><a href="javascript:collapse2.slideit()">Information</a></h4>
			<ul id="info">
				<li><a href="">ご利用案内</a></li>
				<li><a href="">求人案内</a></li>
				<li><a href="">図書取扱店</a></li>
				<li><a href="">トピックス</a></li>
				<li><a href="">販売支援</a></li>
				<li><a href="">会社概要</a></li>
				<li><a href="">お問い合せ</a></li>
			</ul>
			
		
		       {{$chartsing}}
			
			 {{$newsing}}
		</section>
		<br clear="all">

		  {{$sp_foot}}

	</div>

<script type="text/javascript">
	var collapse = new animatedcollapse("cat", 400, true,"block");
	var collapse2 = new animatedcollapse("info", 400, true,"block");
	var collapse3 = new animatedcollapse("ranking", 400, true,"block");
	var collapse4 = new animatedcollapse("whatsnew", 400, true,"block");
</script>
</body>
</html>